package com.zero.mxshengadmin.modules.website.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zero.mxshengadmin.modules.website.entity.WebsiteNewsTypeEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by aicaikeji on 2019/4/3.
 */
@Mapper
public interface WebsiteNewsTypeDao extends BaseMapper<WebsiteNewsTypeEntity> {
    /**
     * 添加内容类型
     * @param entity
     * @return
     */
    int addNewsType(WebsiteNewsTypeEntity entity);

    /**
     * 查询内容类型详情
     * @param entity
     * @return
     */
    WebsiteNewsTypeEntity findNewsTypeInfo(WebsiteNewsTypeEntity entity);

    /**
     * 更新内容类型信息
     * @param entity
     * @return
     */
    int updateNewsTypeInfo(WebsiteNewsTypeEntity entity);

    /**
     * 删除内容类型信息
     * @param entity
     * @return
     */
    int deleteNewsType(WebsiteNewsTypeEntity entity);

    /**
     * 查询内容类型列表
     * @param param
     * @return
     */
    List<WebsiteNewsTypeEntity> findNewsTypeList(Map<String,Object> param);
}
